package com.project.bean;

import java.util.List;

/**
 * 房间实体类
 */
public class RoomBean {
    /**房间编号*/
    private int id;
    /**房间地址*/
    private String site;
    /**容纳人数*/
    private int maxNum;
    /**已住人数*/
    private int num;
    /**房间状态，默认正常*/
    private String state = "正常";
    /**房间类型*/
    private String type;

    private String image;
//    /**学生集合*/
//    private List<StudentBean> stuList;

    public RoomBean() {
    }

    public RoomBean(String site, int maxNum, String type, String image) {
        this.site = site;
        this.maxNum = maxNum;
        this.type = type;
        this.image = image;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public int getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(int maxNum) {
        this.maxNum = maxNum;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setImage(String image) {
        this.image = image;
    }
    //    public List<StudentBean> getStuList() {
//        return stuList;
//    }
//
//    public void setStuList(List<StudentBean> stuList) {
//        this.stuList = stuList;
//    }

//    @Override
//    public String toString() {
//        return site;
//    }


    @Override
    public String toString() {
        return "RoomBean{" +
                "id=" + id +
                ", site='" + site + '\'' +
                ", maxNum=" + maxNum +
                ", num=" + num +
                ", state='" + state + '\'' +
                ", type='" + type + '\'' +
                ", image='" + image + '\'' +
                "}\n";
    }
}
